import { networkRequest, baseRequestConfig, sessionConfig } from './RequestConfig'

//获取session
export const getSession = (params) => {
    sessionConfig.url = '/WCPS/MAIN/000_000_006'
    sessionConfig.data = params
    return networkRequest(
        sessionConfig
    )
}

//获取验证码
export const getVerificationCode = (params) => {
    baseRequestConfig.url = '/WCPS/MAIN/000_000_004';
    baseRequestConfig.data = params;
    return networkRequest(baseRequestConfig)
}

//登录接口
export const startLogin = (params) => {
    baseRequestConfig.url = '/WCPS/MAIN/000_000_005';
    baseRequestConfig.data = params;
    return networkRequest(baseRequestConfig)
}

//首页接口
export const getHomeData = (params) => {
    baseRequestConfig.url = '/WCPS/MAIN/000_000_007';
    baseRequestConfig.data = params;
    return networkRequest(baseRequestConfig)
}


